<template>
  <div>
    <TuiEditor
      ref="tuiEditor"
      :options="options"
    />
    <el-button @click="getHtml">ok</el-button>
  </div>
</template>

<script>
import TuiEditor from '@/components/TuiEditor'
import defaultOptions from '@/components/TuiEditor/default-options'
export default {
  components: {
    TuiEditor
  },
  data() {
    return {
      options: defaultOptions
    }
  },
  created() {
  },
  methods: {
    getHtml() {
      return this.$refs.tuiEditor.getHTML()
    },
    setHTML(html) {
      this.$refs.tuiEditor.setHTML(html)
    }
  }
}
</script>

<style scoped>
</style>
